/***************************************************************
 *  Copyright (c) 2007 by GroupMe! Team (www.groupme.net)
 *  All rights reserved
 *
 *  This file is part of the GroupMe! Project. You can utilize
 *  software of the GroupMe! project under the terms of the 
 *  GNU Lesser General Public License as published by the
 *  Free Software Foundation in version 2.1.
 * 
 *  The GNU Lesser General Public License can be found at:
 *  http://www.gnu.org/licenses/lgpl.html
 *
 *  This copyright notice MUST APPEAR in all copies of the file!
 ***************************************************************/
package net.groupme.model;

import java.net.URI;

import net.groupme.exceptions.UpdateFailedException;
import net.groupme.model.dao.ResourceVisualizationDAO;

/**
 * This class implements the ResourceVisualization object
 * {@link net.groupme.model.ResourceVisualization} for the GroupMe! project.
 * 
 * created on 16.04.2007
 * 
 * @author Mischa Frank <a
 *         href="mailto:code@planetfrank.net">code@planetfrank.net</a>
 * 
 * @version 0.1
 * 
 */
public class ResourceVisualizationImpl implements ResourceVisualization {

	private ResourceVisualizationDAO resourceVisualizationDAO = null;

	public ResourceVisualizationImpl(
			ResourceVisualizationDAO resourceVisualizationDAO) {
		this.resourceVisualizationDAO = resourceVisualizationDAO;
	}

	/* (non-Javadoc)
	 * @see net.groupme.model.Identifiable#getId()
	 */
	public String getId() {
		return this.resourceVisualizationDAO.getId();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see net.groupme.model.Identifiable#getDescription()
	 */
	public String getDescription() {
		return this.resourceVisualizationDAO.getDescription();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see net.groupme.model.ResourceVisualization#getGroupVisualization()
	 */
	public GroupVisualization getGroupVisualization() {
		return this.resourceVisualizationDAO.getGroupVisualization();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see net.groupme.model.ResourceVisualization#getHeight()
	 */
	public int getHeight() {
		return this.resourceVisualizationDAO.getHeight();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see net.groupme.model.Identifiable#getLabel()
	 */
	public String getLabel() {
		return this.resourceVisualizationDAO.getLabel();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see net.groupme.model.ResourceVisualization#getPositionX()
	 */
	public int getPositionX() {
		return this.resourceVisualizationDAO.getPositionX();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see net.groupme.model.ResourceVisualization#getPositionY()
	 */
	public int getPositionY() {
		return this.resourceVisualizationDAO.getPositionY();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see net.groupme.model.ResourceVisualization#getRenderer()
	 */
	public String getRenderer() {
		return this.resourceVisualizationDAO.getRenderer();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see net.groupme.model.ResourceVisualization#getResource()
	 */
	public Resource getResource() {
		return this.resourceVisualizationDAO.getResource();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see net.groupme.model.Identifiable#getURI()
	 */
	public URI getURI() {
		return this.resourceVisualizationDAO.getURI();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see net.groupme.model.ResourceVisualization#getWidth()
	 */
	public int getWidth() {
		return this.resourceVisualizationDAO.getWidth();
	}
	
	/*
	 * (non-Javadoc)
	 * 
	 * @see net.groupme.model.ResourceVisualization#getZAxis()
	 */
	public int getZAxis() {
		return this.resourceVisualizationDAO.getZAxis();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see net.groupme.model.Identifiable#setDescription(java.lang.String)
	 */
	public void setDescription(String description) throws UpdateFailedException {
		this.resourceVisualizationDAO.setDescription(description);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see net.groupme.model.ResourceVisualization#setGroupVisualization(net.groupme.model.GroupVisualization)
	 */
	public void setGroupVisualization(GroupVisualization visualization)
			throws UpdateFailedException {
		this.resourceVisualizationDAO.setGroupVisualization(visualization);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see net.groupme.model.ResourceVisualization#setHeight(int)
	 */
	public void setHeight(int height) throws UpdateFailedException {
		this.resourceVisualizationDAO.setHeight(height);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see net.groupme.model.Identifiable#setLabel(java.lang.String)
	 */
	public void setLabel(String label) {
		this.resourceVisualizationDAO.setLabel(label);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see net.groupme.model.ResourceVisualization#setPositionX(int)
	 */
	public void setPositionX(int posX) throws UpdateFailedException {
		this.resourceVisualizationDAO.setPositionX(posX);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see net.groupme.model.ResourceVisualization#setPositionY(int)
	 */
	public void setPositionY(int posY) throws UpdateFailedException {
		this.resourceVisualizationDAO.setPositionY(posY);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see net.groupme.model.ResourceVisualization#setRenderer(java.lang.String)
	 */
	public void setRenderer(String renderer) {
		this.resourceVisualizationDAO.setRenderer(renderer);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see net.groupme.model.ResourceVisualization#setResource(net.groupme.model.Resource)
	 */
	public void setResource(Resource resource) throws UpdateFailedException {
		this.resourceVisualizationDAO.setResource(resource);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see net.groupme.model.ResourceVisualization#setWidth(int)
	 */
	public void setWidth(int width) throws UpdateFailedException {
		this.resourceVisualizationDAO.setWidth(width);
	}
	
	/*
	 * (non-Javadoc)
	 * 
	 * @see net.groupme.model.ResourceVisualization#setZAxis(int)
	 */
	public void setZAxis(int zAxis) throws UpdateFailedException {
		this.resourceVisualizationDAO.setZAxis(zAxis);
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return this.resourceVisualizationDAO.toString();
	}

}
